/*
 * @Descripttion: 
 * @version: 
 * @Author: ydj
 * @Date: 2025-04-09 10:34:43
 * @LastEditors: ydj
 * @LastEditTime: 2025-04-09 10:39:00
 */
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'

export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src') // 路径别名
    }
  },
  server: {
    port: 3000,
    open: true // 自动打开浏览器
  }
})